package com.zhang.zxx.boot.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhang.zxx.boot.common.base.MyPage;
import com.zhang.zxx.boot.entity.DO.SysUserInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * UserPageDTO:用户分页请求参数
 *
 * @author zhangxiaoxiang
 * @date 2021/12/05
 */

@Data
@ApiModel("UserPageDTO用户分页请求参数")
@EqualsAndHashCode(callSuper = true)
public class UserPageDTO extends MyPage<SysUserInfo> {


    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", example = "1170896100656156674")
    private String id;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", example = "管理员")
    private String username;

    /**
     * 手机号码
     */
    @ApiModelProperty(value = "手机号码", example = "15988888885")
    private String phoneNumber;
    /**
     * 用户邮箱
     */
    @ApiModelProperty(value = "用户邮箱", example = "13223423@qq.com")
    private String email;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", example = "2021-04-03 09:19:01")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;


    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间", example = "2021-04-03 09:25:21")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

}
